package org.jeecg.modules.zixishi.service;

import org.jeecg.modules.coupon.entity.Coupon;
import org.jeecg.modules.zixishi.entity.SwiperPic;
import org.jeecg.modules.zixishi.entity.Seat;
import org.jeecg.modules.zixishi.entity.Quyu;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 区域
 * @Author: jeecg-boot
 * @Date:   2024-05-19
 * @Version: V1.0
 */
public interface IQuyuService extends IService<Quyu> {

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<Quyu>
	 */
	public List<Quyu> selectByMainId(String mainId);
	/**
	 * 添加一对多
	 *
	 * @param quyu
	 * @param swiperPicList
	 * @param seatList
	 */
	public void saveMain(Quyu quyu,List<SwiperPic> swiperPicList,List<Seat> seatList,List<Coupon> couponList) ;

	/**
	 * 修改一对多
	 *
	 * @param quyu
	 * @param swiperPicList
	 * @param seatList
	 */
	public void updateMain(Quyu quyu,List<SwiperPic> swiperPicList,List<Seat> seatList,List<Coupon> couponList);

	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

}
